'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:TaskDailydetailCtrl
 * @description
 * # TaskDailydetailCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('TaskDailydetailCtrl', function(DataService, openApi, $routeParams, Util, $filter) {
        this.initData = function() {
            var param = {};
            param.pkId = $routeParams.pkId;
            DataService.getData(openApi.getdailydetail, param).then(function(data) {
                console.log(data)
                this.data = data
                this.title = data.userName + $filter('dateFilter')(data.logDate, 'MM.dd') + "工作日报"
            }.bind(this))
        }
        // 初始化数据
        this.initData();
    });
